// pages/menu/menu.js
const app = getApp()
let audioAction1=app.globalData.audioAction
Page({
  data: {
    imageUrl1:"https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBbTd1RGlYZkM5ZUJnMUpWeWhFd3VmcFZJR3BoP2U9dkM1S2ha.png&size=200",
    imageUrl2:"https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBbTd1RGlYZkM5ZUJnMUZGRzFyR3plMmVpMHI2P2U9dmdac1Bh.png&size=128",
    current: {
      src: 'https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBcl9md0ZDWGtDRmJoMnlaQWQ5SjVpb2xMOFJiP2U9aGJSOUxl.mp3',
    },
    audioAction: {
      method: 'play'
    }
  },
  onLoad:function(){
    if(audioAction1.method=='play'){
      this.setData({
        audioAction: {
          method: 'play'
        }
      });
    }else {
      this.setData({
        audioAction: {
          method: 'pause'
        }
      });
    }
  },
  gotoComeputer()
  {
    wx.redirectTo({
      url: '../computer/computer',
  })
  },
  gotoPvP()
  {
    wx.redirectTo({
      url: '../pvp/pvp',
  })
  },
  gotoFriend()
  {
    wx.redirectTo({
      url: '../friend/friend',
  })
  },
  gotoSetting()
  {
    wx.redirectTo({
      url: '../setting/setting',
  })
  },
  gotoMessage()
  {
    wx.redirectTo({
      url: '../message/message',
  })
  }
})